package com.hefei.hight.proxy.cglib;

/**
 * @author caizhengjun
 * @date 2020/9/5 3:00 下午
 */
public class TestCglib {
    public static void main(String[] args) {
        StudentDao target = new StudentDao();
        System.out.println(target.getClass());
        StudentDao proxyInstance = (StudentDao) new ProxyStudent(target).getProxyInstance();
        System.out.println(proxyInstance.getClass());
        proxyInstance.save();
    }
}
